+ Post New Thread + Reply to Thread + Mark as Solved
Results 1 to 8 of 8

Thread: Burning raw data into EPROM

  1. #1
    Advanced Member level 2
    Points: 4,827, Level: 16
    neazoi's Avatar
    Join Date
    Jan 2008
    Location
    Greece
    Posts
    696
    Helped
    8 / 8
    Points
    4,827
    Level
    16

    Burning raw data into EPROM

    hello,
    I would like to program two 2716 eproms to build this:
    http://www.galacticelectronics.com/4...lockMicro.HTML

    The micro-instruction logic is here:
    http://www.galacticelectronics.com/4...ROMDetail.HTML

    Starting at address zero and incrementing by one for each line. The first 8 bits are stored into the first eprom and the next 8 bits are stored into the second eprom. Both eproms share the same address. The HEX code for eprom 0 and 1 is shown at the end of each line.

    I would like a little bit of help of how to create the HEX file for loading into the programming software.
    Should I open a hex editor and copy each Hex value for each eprom, starting at address 0?

  2. #2
    Advanced Member level 5
    Points: 108,806, Level: 80
    Achievements:
    7 years registered
    Awards:
    Helpful gold

    Join Date
    Jan 2008
    Location
    Bochum, Germany
    Posts
    16,196
    Helped
    4468 / 4468
    Points
    108,806
    Level
    80

    Re: Burning raw data into EPROM

    A hex editor would generate a binary file, which is just the right way, because a hex file has a special format that you can't easily write by hand. Google for Intel hex format to learn about the difference.

    Either your programmer understands raw binary, or you need to a bin2hex converter.

    Copying the hex columns to the editor window seems to be the easiest way.


    1 members found this post helpful.

  3. #3
    Advanced Member level 2
    Points: 4,827, Level: 16
    neazoi's Avatar
    Join Date
    Jan 2008
    Location
    Greece
    Posts
    696
    Helped
    8 / 8
    Points
    4,827
    Level
    16

    Re: Burning raw data into EPROM

    That is a little bit strange. If I copy the column to the hex editor it seems it inserts some empty bytes between wanted ones

    It may be the new line character of the editor

    Which ones should I copy, the HEX of the binary bits?

    The hex editor accepts 16 bits for each address, but I have only 8. How should I cope with this?
    Last edited by neazoi; Today at 12:23.

  4. #4
    Advanced Member level 5
    Points: 108,806, Level: 80
    Achievements:
    7 years registered
    Awards:
    Helpful gold

    Join Date
    Jan 2008
    Location
    Bochum, Germany
    Posts
    16,196
    Helped
    4468 / 4468
    Points
    108,806
    Level
    80

    Re: Burning raw data into EPROM

    Some understanding of the hex editor tool will be required for this operation...

    You have entered the hex bytes in ASCII mode, but you need to insert it in binary (or "hex") mode. I don't know if and how it's supported by your editor. I found, that PSPad e.g. can insert that columns as they are.
    Attached Files Attached Files


    1 members found this post helpful.

  5. #5
    Advanced Member level 2
    Points: 4,827, Level: 16
    neazoi's Avatar
    Join Date
    Jan 2008
    Location
    Greece
    Posts
    696
    Helped
    8 / 8
    Points
    4,827
    Level
    16

    Re: Burning raw data into EPROM

    Quote Originally Posted by FvM View Post
    Some understanding of the hex editor tool will be required for this operation...

    You have entered the hex bytes in ASCII mode, but you need to insert it in binary (or "hex") mode. I don't know if and how it's supported by your editor. I found, that PSPad e.g. can insert that columns as they are.
    The same happens if I open the file on the hex editor of the pspad...

    Could you help me with this?
    I attach you the splitted files, both in HEX and in BIN (both ascii)
    Attached Files Attached Files

  6. #6
    Advanced Member level 5
    Points: 108,806, Level: 80
    Achievements:
    7 years registered
    Awards:
    Helpful gold

    Join Date
    Jan 2008
    Location
    Bochum, Germany
    Posts
    16,196
    Helped
    4468 / 4468
    Points
    108,806
    Level
    80

    Re: Burning raw data into EPROM

    I don't understand what you're asking for.

    I know, how iit works, you can either use the files appended with my post or try to learn it yourself.


    1 members found this post helpful.

  7. #7
    Advanced Member level 2
    Points: 4,827, Level: 16
    neazoi's Avatar
    Join Date
    Jan 2008
    Location
    Greece
    Posts
    696
    Helped
    8 / 8
    Points
    4,827
    Level
    16

    Re: Burning raw data into EPROM

    Quote Originally Posted by FvM View Post
    I don't understand what you're asking for.

    I know, how iit works, you can either use the files appended with my post or try to learn it yourself.
    Oh I am really sorry, I haven't noticed your attached files!
    Thank you very much for the help!

    By looking at your files, basically one should type in the HEX data sequensially, in the HEX area of the editor (if I understood that well).

    I was confused because the memory of the EPROM (where the bin file will be burned in) is 8 bits long, whereas the HEX edit area has 16 positions. But I suppose these are two different things. The programmer knows how to handle the sequencial bin file for each EPROM type...?
    Last edited by neazoi; Today at 14:29.

  8. #8
    Advanced Member level 5
    Points: 108,806, Level: 80
    Achievements:
    7 years registered
    Awards:
    Helpful gold

    Join Date
    Jan 2008
    Location
    Bochum, Germany
    Posts
    16,196
    Helped
    4468 / 4468
    Points
    108,806
    Level
    80

    Re: Burning raw data into EPROM

    What I actually did to generate the file.
    1. Copied a hex column, as from your ROMHEX.txt files to clipboard
    2. Opened PSPad in hex mode and pasted the clipboard as hex text.
    3. Saved to a file.


    Did you find this post helpful? Click: Yes

+ Post New Thread + Reply to Thread + Mark as Solved

Quick Reply Quick Reply

Rich Text Editor
Add an Image